<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>迷路了</title>
    <style>
        body {
            padding: 0;
            margin: 0;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            background: url("static/images/404-bg.png") no-repeat center/100% 100%;
        }

        h3 {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 30px;
            color: white;
        }

        h3 a {
            color: #e81123;
        }
    </style>
</head>
<body>
<h3>迷路了？<span id="s">5</span>秒后回到<a href="<%=request.getContextPath()%>/">首页</a></h3>
</body>
<script>
    let s = 5;
    setInterval(function () {
        s--;
        if (s === 0) {
            top.location.replace("<%=request.getContextPath()%>/");
        }
        document.getElementById("s").innerText = s;
    }, 1000)
</script>
</html>
